import subprocess
import time

cmd = "tshark.exe -i 4 -w D:\\Code\\GraduationPrj\\test.pcapng"
tshark_pro = subprocess.Popen(cmd, shell=False)
time.sleep(7)
tshark_pro.terminate()
